Amid growing anti-Muslim rhetoric in the US poll campaign, President Barack Obama today made his first visit to a mosque as part of his effort to assure the religious minority of their safety and security and celebrate religious diversity of the country.